package HLLib.addressBook;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;
import HLCode.HLObject;
import HLLib.base.HLList;
import HLLib.base.HLString;

public class HLAddressPerson extends HLLibObject {
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_ADDRESSBOOK, HLClassManager_H.LIB_CLASS_ADDRESSBOOK_AddressPerson);
    }

    public HLObject GetObject(int index) {
        switch (index) {
        case 0: {
            return firstName;
        }
        case 1: {
            return midName;
        }
        case 2: {
            return lastName;
        }
        case 3: {
            return companyName;
        }
        case 4: {
            return email;
        }
        case 5: {
            return streetAddress;
        }
        case 6: {
            return phones;
        }
        }
        return null;
    }

    public void SetObject(int index, HLObject value) {
        switch (index) {
        case 0: {
            firstName = (HLString) value;
            return;
        }
        case 1: {
            midName = (HLString) value;
            return;
        }
        case 2: {
            lastName = (HLString) value;
            return;
        }
        case 3: {
            companyName = (HLString) value;
            return;
        }
        case 4: {
            email = (HLString) value;
            return;
        }
        case 5: {
            streetAddress = (HLString) value;
            return;
        }
        case 6: {
            phones = (HLList) value;
            return;
        }
        }
    }

    public HLString firstName;

    public HLString midName;

    public HLString lastName;

    public HLString companyName;

    public HLString email;

    public HLString streetAddress;

    public HLList phones;

    public HLString GetFullName() {
        return new HLString(firstName.string + midName.string + lastName.string);
    }
}
